with open(r'E:\python\user.txt', 'r', encoding='utf-8') as f:
    lines = f.readlines()
if lines:
    for line in lines:
        print(line.strip())